﻿using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Data;
using Shuba.Model;

namespace Shuba.Business
{
    public class MobileFile
    {
        private Shuba.Data.MobileFile _data = new Shuba.Data.MobileFile();

        public List<MobileFileInfo> GetList(string keyword)
        {
            return _data.GetList(keyword);
        }

        public MobileFileInfo Get(string version)
        {
            return _data.Get(version);
        }

        public void Save(MobileFileInfo info)
        {
            _data.Save(info);
        }

        public List<MobileFileInfo> GetListApproval(string UPDATE_BY)
        {
            return _data.GetListApproval(UPDATE_BY);
        }

        public void Approve(string imei, string ACT_TYPE)
        {
            _data.Approve(imei, ACT_TYPE);
        }

        public void Reject(string imei)
        {
            _data.Reject(imei);
        }

        public MobileFileInfo GetApprovalByID(string imei)
        {
            return _data.GetApprovalByID(imei);
        }    
    }
}